//个人中心
//$(".head_nav_yh").hover(function(){
//  $(this).css("background", "#FBFEE9").css("color","#FF6700");
//  $(".head_nav_grzx").css("display","block").css("width", "110px").css("hight","200px")
//  },400).finish();
//},function(){
//  $(this).css("background", "#424242");
//  $("#head_nav_grzx").css({"width":"110px"}).animate({
//      height:"0px"
//  },400);
//});

//购物车
$("#head_car").hover(function(){
    $(this).css("background", "#FBFEE9");
    $(".head_car_text").css("color", "#ff6700");
    $("#car_content").css({"width":"300px"}).css({"box-shadow": "0 3px 3px #BEBEBE"}).animate({
        height:"100px"
    },400).finish();
},function(){
    $(this).css("background", "#424242");
    $(".head_car_text").css("color", "#b0b0b0");
    $("#car_content").css({"width":"300px"}).animate({
        height:"0px"
    },400);
});

var sss;
//鼠标悬浮在菜单时，弹出下拉框
$(".menu_li").hover(function(){
    $("#menu_content_bg").css("border","1px solid #D0D0D0");
    $(this).css("color","#ff6700");
    $("#"+$(this).attr("control")).show();
    sss=$(this);
    $("#menu_content_bg").height(230);
},function(){

//鼠标离开菜单
    $("#"+$(this).attr("control")).hide();
   	$(this).css("color"," #424242");
    $("#menu_content_bg").height(0);
    $("#menu_content_bg").css("border","0px solid #D0D0D0");
});
//这个弄了好久，想哭
//鼠标继续悬浮在下拉框中
	 $("#menu_content_bg").hover(function() {
	 sss.css("color","#ff6700");
	 $("#menu_content_bg").css("border","1px solid #D0D0D0");
	 $("#"+sss.attr("control")).show();
	 $("#menu_content_bg").height(230);
},function () {
//鼠标离开下拉框
	$("#"+sss.attr("control")).hide();
	sss.css("color"," #424242");
	$("#menu_content_bg").height(0);
    $("#menu_content_bg").css("border","0px solid #D0D0D0");
});

//输入框获得焦点
$("#find_input").focus(function(){
    $("#find_wrap").css("border","1px solid #ff6700");
    $("#find_but").css("border-left","1px solid #ff6700");
})
//失去焦点
$("#find_input").blur(function(){
    $("#find_wrap").css("border","1px solid #F0F0F0");
    $("#find_but").css("border-left","1px solid #F0F0F0");
});
//搜索按钮伪类
$("#find_but").hover(function(){
    $(this).css({"background":"#ff6700",color:"#fff"});
},function(){
    $(this).css({"background":"#fff",color:"#424242"});
});